package com.founder.chd_daily_query.entity.query;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sun.istack.Nullable;

import javax.persistence.*;
import java.util.Date;

@Entity
@Table(name = "LAND_COAL_PURCHASINGPLAN")
public class LandCoalPurchasingplanEntity {

    @Id
    @Column(name = "CONTRACT_ID")
    private String contractId;

    @Column(name = "POWERSTATION_ID")
    private String powerstationId;

    @Column(name = "PURCHASE_SALE_PRECEPT_ID")
    private String purchaseSalePreceptId;

    @Column(name = "CONTRACT_CODE")
    private String contractCode;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @JSONField(format = "yyyy-MM-dd")
    @Column(name = "EFFECTIVE_DATE_B")
    private Date effectiveDateB;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @JSONField(format = "yyyy-MM-dd")
    @Column(name = "EFFECTIVE_DATE_E")
    private Date effectiveDateE;

    @Column(name = "TRANSPORT_TYPE")
    private String transportType;

    @Column(name = "UNIT_AFFILIATION")
    private String unitAffiliation;

    @Column(name = "STATION_B")
    private String stationB;

    @Column(name = "BELONG_RAILWAY_STATION")
    private String belongRailwayStation;

    @Column(name = "MINE_ID")
    private String mineId;

    @Column(name = "VENDOR_ID")
    private String vendorId;

    @Column(name = "RECEIVE_ORG_ID")
    private String receiveOrgId;

    @Column(name = "STATION_E")
    private String stationE;

    @Nullable
    @Column(name = "TRANS_AMOUNT")
    private Float transAmount;

    @Nullable
    @Column(name = "CONTRACT_AMOUNT")
    private Float contractAmount;

    @Column(name = "PLAN_ATTRIBUTE")
    private String planAttribute;

    @Column(name = "FUEL_SORT")
    private String fuelSort;

    @Column(name = "QUALITY_SORT")
    private String qualitySort;

    @Nullable
    @Column(name = "VALUE_BEGIN")
    private Float valueBegin;

    @Nullable
    @Column(name = "VALUE_END")
    private Float valueEnd;

    @Column(name = "QNET")
    private Integer qnet;

    @Column(name = "PRICE_TYPE")
    private String priceType;

    @Nullable
    @Column(name = "PRICE")
    private Float PRICE;

    @Nullable
    @Column(name = "FEE_ID")
    private Float feeId;

    @Nullable
    @Column(name = "TAX_DIFFERENTIAL")
    private Float taxDifferential;

    @Nullable
    @Column(name = "ONBOARD_PRICE")
    private Float onboardPrice;

    @Column(name = "STANDARD_COAL_UNITPRICE")
    private String standardCoalUnitprice;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @JSONField(format = "yyyy-MM-dd")
    @Column(name = "CREATE_DATE")
    private Date createDate;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @JSONField(format = "yyyy-MM-dd")
    @Column(name = "LAST_UPDATE_DATE")
    private Date lastUpdateDate;

    @Nullable
    @Column(name = "FACTORY_PRICE")
    private String factoryPrice;

    @Column(name = "CONTRACT_NAME")
    private String contractName;

    public String getContractName() {
        return contractName;
    }

    public void setContractName(String contractName) {
        this.contractName = contractName;
    }

    public String getContractId() {
        return contractId;
    }

    public void setContractId(String contractId) {
        this.contractId = contractId;
    }

    public String getPurchaseSalePreceptId() {
        return purchaseSalePreceptId;
    }

    public void setPurchaseSalePreceptId(String purchaseSalePreceptId) {
        this.purchaseSalePreceptId = purchaseSalePreceptId;
    }

    public String getContractCode() {
        return contractCode;
    }

    public void setContractCode(String contractCode) {
        this.contractCode = contractCode;
    }

    public Date getEffectiveDateB() {
        return effectiveDateB;
    }

    public void setEffectiveDateB(Date effectiveDateB) {
        this.effectiveDateB = effectiveDateB;
    }

    public Date getEffectiveDateE() {
        return effectiveDateE;
    }

    public void setEffectiveDateE(Date effectiveDateE) {
        this.effectiveDateE = effectiveDateE;
    }

    public String getTransportType() {
        return transportType;
    }

    public void setTransportType(String transportType) {
        this.transportType = transportType;
    }

    public String getUnitAffiliation() {
        return unitAffiliation;
    }

    public void setUnitAffiliation(String unitAffiliation) {
        this.unitAffiliation = unitAffiliation;
    }

    public String getStationB() {
        return stationB;
    }

    public void setStationB(String stationB) {
        this.stationB = stationB;
    }

    public String getBelongRailwayStation() {
        return belongRailwayStation;
    }

    public void setBelongRailwayStation(String belongRailwayStation) {
        this.belongRailwayStation = belongRailwayStation;
    }

    public String getMineId() {
        return mineId;
    }

    public void setMineId(String mineId) {
        this.mineId = mineId;
    }

    public String getVendorId() {
        return vendorId;
    }

    public void setVendorId(String vendorId) {
        this.vendorId = vendorId;
    }

    public String getReceiveOrgId() {
        return receiveOrgId;
    }

    public void setReceiveOrgId(String receiveOrgId) {
        this.receiveOrgId = receiveOrgId;
    }

    public String getStationE() {
        return stationE;
    }

    public void setStationE(String stationE) {
        this.stationE = stationE;
    }

    public Float getTransAmount() {
        return transAmount;
    }

    public void setTransAmount(Float transAmount) {
        this.transAmount = transAmount;
    }

    public Float getContractAmount() {
        return contractAmount;
    }

    public void setContractAmount(Float contractAmount) {
        this.contractAmount = contractAmount;
    }

    public String getPlanAttribute() {
        return planAttribute;
    }

    public void setPlanAttribute(String planAttribute) {
        this.planAttribute = planAttribute;
    }

    public String getFuelSort() {
        return fuelSort;
    }

    public void setFuelSort(String fuelSort) {
        this.fuelSort = fuelSort;
    }

    public String getQualitySort() {
        return qualitySort;
    }

    public void setQualitySort(String qualitySort) {
        this.qualitySort = qualitySort;
    }

    public Float getValueBegin() {
        return valueBegin;
    }

    public void setValueBegin(Float valueBegin) {
        this.valueBegin = valueBegin;
    }

    public Float getValueEnd() {
        return valueEnd;
    }

    public void setValueEnd(Float valueEnd) {
        this.valueEnd = valueEnd;
    }

    public Integer getQnet() {
        return qnet;
    }

    public void setQnet(Integer qnet) {
        this.qnet = qnet;
    }

    public String getPriceType() {
        return priceType;
    }

    public void setPriceType(String priceType) {
        this.priceType = priceType;
    }

    public Float getPRICE() {
        return PRICE;
    }

    public void setPRICE(Float PRICE) {
        this.PRICE = PRICE;
    }

    public Float getFeeId() {
        return feeId;
    }

    public void setFeeId(Float feeId) {
        this.feeId = feeId;
    }

    public Float getTaxDifferential() {
        return taxDifferential;
    }

    public void setTaxDifferential(Float taxDifferential) {
        this.taxDifferential = taxDifferential;
    }

    public Float getOnboardPrice() {
        return onboardPrice;
    }

    public void setOnboardPrice(Float onboardPrice) {
        this.onboardPrice = onboardPrice;
    }

    public String getStandardCoalUnitprice() {
        return standardCoalUnitprice;
    }

    public void setStandardCoalUnitprice(String standardCoalUnitprice) {
        this.standardCoalUnitprice = standardCoalUnitprice;
    }

    public String getPowerstationId() {
        return powerstationId;
    }

    public void setPowerstationId(String powerstationId) {
        this.powerstationId = powerstationId;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getLastUpdateDate() {
        return lastUpdateDate;
    }

    public void setLastUpdateDate(Date lastUpdateDate) {
        this.lastUpdateDate = lastUpdateDate;
    }

    public String getFactoryPrice() {
        return factoryPrice;
    }

    public void setFactoryPrice(String factoryPrice) {
        this.factoryPrice = factoryPrice;
    }

    @Override
    public String toString() {
        return "LandCoalPurchasingplanEntity{" +
                "contractId='" + contractId + '\'' +
                ", powerstationId='" + powerstationId + '\'' +
                ", purchaseSalePreceptId='" + purchaseSalePreceptId + '\'' +
                ", contractCode='" + contractCode + '\'' +
                ", effectiveDateB=" + effectiveDateB +
                ", effectiveDateE=" + effectiveDateE +
                ", transportType='" + transportType + '\'' +
                ", unitAffiliation='" + unitAffiliation + '\'' +
                ", stationB='" + stationB + '\'' +
                ", belongRailwayStation='" + belongRailwayStation + '\'' +
                ", mineId='" + mineId + '\'' +
                ", vendorId='" + vendorId + '\'' +
                ", receiveOrgId='" + receiveOrgId + '\'' +
                ", stationE='" + stationE + '\'' +
                ", transAmount=" + transAmount +
                ", contractAmount=" + contractAmount +
                ", planAttribute='" + planAttribute + '\'' +
                ", fuelSort='" + fuelSort + '\'' +
                ", qualitySort='" + qualitySort + '\'' +
                ", valueBegin=" + valueBegin +
                ", valueEnd=" + valueEnd +
                ", qnet=" + qnet +
                ", priceType='" + priceType + '\'' +
                ", PRICE=" + PRICE +
                ", feeId=" + feeId +
                ", taxDifferential=" + taxDifferential +
                ", onboardPrice=" + onboardPrice +
                ", standardCoalUnitprice='" + standardCoalUnitprice + '\'' +
                ", createDate=" + createDate +
                ", lastUpdateDate=" + lastUpdateDate +
                ", factoryPrice='" + factoryPrice + '\'' +
                ", contractName='" + contractName + '\'' +
                '}';
    }
}
